//    Copyright (C) Kherty.  All rights reserved.
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using OpenLS.Spreadsheet.UI.Internals;

namespace OpenLS.Spreadsheet.UI
{
    /// <summary>
    /// Interaction logic for LanguageWindow.xaml
    /// </summary>

    public partial class OptionsWindow
    {

        public OptionsWindow()
        {
            Resources.MergedDictionaries.Add(new DialogResources());
            InitializeComponent();
        }
        /*
        public string SelectedCultureName
        {
            get
            {
                switch (this.laguageCombo.SelectedIndex)
                {
                    case 1: return "en-us";
                    case 2: return "fr-fr";
                    case 3: return "en-gb";
                    default: return null;
                }
            }
        }
        */
        public ResourceDictionary SelectedSkin
        {
            get
            {
                switch (this.skinCombo.SelectedIndex)
                {
                    case 0: return new Spreadsheet2007BlueSkin();
                    case 1: return new Spreadsheet2010BlackSkin();
                    case 2: return new Spreadsheet2010SilverSkin();
                    default: return null;
                }
            }
        }

        private void OnVersionLoaded(object sender, RoutedEventArgs e)
        {
            ((TextBlock) sender).Text = Assembly.GetEntryAssembly().FullName;
        }


    }
}